/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('cms_site_module', {
    sm_id: {
      type: DataTypes.CHAR(36),
      allowNull: false,
      primaryKey: true
    },
    sm_name: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    sm_isSys: {
      type: DataTypes.INTEGER(4),
      allowNull: true,
      defaultValue: '0'
    },
    sm_viewPath: {
      type: DataTypes.STRING(50),
      allowNull: true,
      defaultValue: ''
    },
    sm_realViewPath: {
      type: DataTypes.STRING(50),
      allowNull: true,
      defaultValue: ''
    },
    sm_url: {
      type: DataTypes.STRING(100),
      allowNull: true,
      unique: true
    },
    sm_keyWord: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    sm_pageTitle: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    sm_remark: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    sm_createTime: {
      type: DataTypes.DATE,
      allowNull: true
    }
  }, {
    tableName: 'cms_site_module'
  });
};
